<html>
<head>
    <meta charset="utf-8">
    <title>333</title>
</head>
<body>
<script >
    function page(n) {
        document.getElementById("pageIndex").value=n;
        document.getElementById("queryForm").submit();
    }
</script>
<form action="/insert" method="post">
    <input name="id" ><br>
    <input name="name"><br>
    <input type="submit" value="提交">
</form>
<br>
<form id="queryForm" action="/query" method="post">
    <input type="hidden" id="pageIndex" name="pageIndex" value="${pageIndex}">
    <input name="name"><input type="submit" value="查询">
</form>
<table >
    <thead>
    <tr>
        <td>id</td><td>name</td>
    </tr>
    </thead>
    <tbody>
    <#list list as o>
        <tr>
            <td>${o.id}</td>
            <td>${o.name}</td>
        </tr>
    </#list>
    </tbody>
</table>
${page.toString()}
</body>
</html>